package com.crm.common.crm.entity.PO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.crm.common.ka.core.feign.examine.entity.ExamineRecordSaveBO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bill_crm_putin_money")
@ApiModel(value="CrmPutinMoney对象", description="投放金额表")
public class CrmPutinMoneyPO implements Serializable {

    private static final long serialVersionUID=1L;


    @TableId(value = "putin_money_id", type = IdType.AUTO)
    private Integer putinMoneyId;

    @ApiModelProperty(value = "投放平台")
    private String putinPlatform;

    @ApiModelProperty(value = "投放金额")
    private BigDecimal putinMoney;

    @ApiModelProperty(value = "实际投放金额")
    private BigDecimal practicalPutinMoney;

    @ApiModelProperty(value = "课程期数")
    private String coursePeriods;

    @ApiModelProperty(value = "投放日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date putinDate;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "渠道赔付金额")
    private BigDecimal putinCompensateMoney;

    @ApiModelProperty(value = "渠道返点金额")
    private BigDecimal putinRebatesMoney;

    @ApiModelProperty(value = "表单录入时间")
    private Date putinFormDate;

    @ApiModelProperty(value = "录入人")
    private String putinUserId;

    @ApiModelProperty(value = "审核状态:1-待审核、2-审核中、3-已拒绝、4-已通过")
    private Integer checkStatus;

    @ApiModelProperty(value = "审核记录ID")
    private Integer examineRecordId;

    @ApiModelProperty("审批数据")
    private ExamineRecordSaveBO examineFlowData;

    @ApiModelProperty(value = "ROI编号")
    private String number;

    @ApiModelProperty(value = "用户姓名")
    private String putinUserName;


}
